#ifndef __JY61P_H__
#define __JY61P_H__

#include <stdbool.h>
#include <stdint.h>

extern volatile uint8_t jy61p_buffer[11];

typedef struct 
{
    volatile float roll;
    volatile float yaw;
    volatile float pitch;
} jy61p_t;

extern jy61p_t my_jy61p;

void jy61p_init();
void jy61p_reset();
void jy61p_usart_RxCallback();

#endif
